package com.atjinggu.jinggumail.order.feign;

import com.atjinggu.jinggumail.common.utils.R;
import com.atjinggu.jinggumail.order.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author jingming
 * @Type WmsFeignService.java
 * @Desc
 * @date 2021/3/9 10:02
 */
@FeignClient("jinggumail-ware")
public interface WmsFeignService {
    @GetMapping("/ware/waresku/getSkusHasStock")
     R getSkusHasStock(@RequestBody List<Long> skuIds);

    @GetMapping("/ware/waresku/{memberId}/getFare")
     R getFare(@PathVariable("memberId") String memberId);
    @PostMapping("/ware/waresku/lock/order")
    R orderLockStock(@RequestBody WareSkuLockVo vo);
}